* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #000;
}

.jacket {
  max-width: 720px;
  width: 100%;
  /* position: relative; */
}

header {
  height: 46px;
  padding: 2px 0;
  display: flex;
  align-items: center;
  position: sticky;
  z-index: 100;
  top: 0;
  background-color: #fff;

  .icon {
    text-align: center;
    width: 40px;
    font-size: .75rem;
  }

  b {
    font-size: 1rem;
    margin: 0 auto;
  }
}

main {
  background-color: #f4f4f4;
  padding: 10px;

  .login {
    border-radius: 5px;
    background-color: #fff;
    padding: 15px 10px;

    a {
      position: absolute;
      right: 20px;
      text-align: right;
      font-size: 0.75rem;
    }
  }

  .data-box {
    margin: 40px 0;

    .picture {
      width: 125px;
      /* height: 125px; */
      margin: 0 auto;


      img {
        width: 100%;
      }
    }

    p {
      text-align: center;
      color: #999;
      font-size: 0.75rem;
    }

    .product {
      width: 100px;
      height: 32px;
      border: 1px solid #ddd;
      border-radius: 32px;
      margin: 25px auto 0;
      text-align: center;
      align-content: center;
      font-size: 0.8rem;
      color: #666;

    }
  }

  .shopping-cart {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;

    h6 {
      padding: 3px 0;
    }

    .buy-products {
      display: flex;
      align-items: center;

      .product-information {
        display: flex;
        width: 100%;

        .picture {
          width: 80px;
          height: 80px;

          img {
            width: 100%;
            height: 100%;
          }
        }

        .text {
          padding-left: 10px;
          width: calc(100% - 80px);

          .product-name {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
          }

          .product-type {
            span {
              color: red;
              border: 1px solid red;
              font-size: 0.5rem;
              padding: 1px;
            }
          }

          .product-price {
            display: flex;
            padding-top: 10px;

            p {
              flex: 1;
              color: red;
            }

            .quantity {
              flex: 1;
              text-align: right;

              span {
                padding: 0 2px;
                border: 1px solid #999;
              }

              .reduce {
                border-top-left-radius: 10px;
                border-bottom-left-radius: 10px;
              }

              .add {
                border-top-right-radius: 10px;
                border-bottom-right-radius: 10px;
              }
            }
          }
        }
      }
    }
  }
}

footer {
  background-color: #f4f4f4;

  h3 {
    text-align: center;
    padding-top: 20px;
  }

  .product-data {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;

    .product-data-box {
      width: 48%;
      margin: 1%;
      background-color: #fff;
      border-radius: 10px;

      img {
        width: 100%;
      }

      p {
        font-size: .75rem;
        margin: 0 0 5px 10px;
      }

      span {
        color: red;
        border: 1px solid red;
        font-size: 0.5rem;
        padding: 2px;
        margin-left: 10px;
      }

      .text {
        padding: 10px;
      }
    }
  }
}

/* 结算 */
.settlement {
  height: 60px;
  position: sticky;
  z-index: 100;
  bottom: 0;
  display: flex;
  background-color: #fff;

  .marquee {
    flex: 1;
    align-content: center;
    padding-left: 10px;
  }

  .content {
    flex: 2;
    font-size: .75rem;
    align-content: center;
    text-align: right;
  }

  .settlement-price {
    flex: 1;
    text-align: right;
    align-content: center;

    span {
      color: #fff;
      /* border: 1px solid red; */
      border-radius: 60px;
      padding: 5px 20px;
      background-color: #ff6a1c;
    }
  }

}